-- GENERATED SPELL FOR [Battered Drakkari Berserker] --


function spell0_26943(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(50420,pUnit)
pUnit:RegisterEvent('Sorts_26943', 613, 1)
end

function spell1_26943(pUnit, Event) --@Knockdown,n/a--
pUnit:FullCastSpellOnTarget(37592,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26943', 1000, 1)
end

function Sorts_26943(pUnit, Event)
local choix_sorts_26943 = math.random(0, 1)
if choix_sorts_26943 == 0 then
pUnit:RegisterEvent('spell0_26943', 1, 1)
end
if choix_sorts_26943 == 1 then
pUnit:RegisterEvent('spell1_26943', 1, 1)
end
end

function mob26943_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26943', math.random(1500, 3000), 1)
end

function mob26943_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26943_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26943_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26943, 1, 'mob26943_Action')
RegisterUnitEvent(26943, 2, 'mob26943_Leave')
RegisterUnitEvent(26943, 3, 'mob26943_Kill')
RegisterUnitEvent(26943, 4, 'mob26943_Die')
